package createType.Builder.car;

import createType.Builder.car.Builder;

public class CarBuilder implements Builder {
	private Car car = new Car();

	@Override
	public void builderWheel() {
		car.setWheel("wheel A");
		
	}

	@Override
	public void buiderCarFrame() {
		car.setFrame("frame B");
		
	}

	@Override
	public void builderEngine() {
		
		car.setEngine("engin A");
	}
	
	public Car buildCar(){
		System.out.println("Car has been builded.");
		return car;
	}
}
